package com.boot.main.mapper;

import com.boot.main.entity.CcomRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CcomRoleMapper {
    CcomRole getRoleById(Long id);
    List<String> getPermissionByUserName(@Param("username") String username);
    List<CcomRole> getRoles(@Param("currentSize") Integer currentSize,@Param("limit") Integer limit,@Param("name") String name);
    List<CcomRole> getAllRoles();
    String[] getRolesById(@Param("roleIds") String[] roleIds);
    int getTotalCount();
    int saveRole(CcomRole user);
    int updateRole(CcomRole user);
    int deleteRole(Long id);
}
